<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{padding: 0;margin: 0;}
        table,td{
            border: 1px solid #333;
        }
        table{
            border-collapse: collapse;
            font-size: 14px;
            line-height: 32px;
        }
        td{
            padding: 0 10px;
        }

    </style>
</head>
<body>
    <!-- table>tr*9>td*9{$x$=$$} -->
    <!-- <table>
        <tr>
            <td>1x1=01</td>
            <td>2x2=02</td>
            <td>3x3=03</td>
            <td>4x4=04</td>
            <td>5x5=05</td>
            <td>6x6=06</td>
            <td>7x7=07</td>
            <td>8x8=08</td>
            <td>9x9=09</td>
        </tr>
        <tr>
            <td>1x1=01</td>
            <td>2x2=02</td>
            <td>3x3=03</td>
            <td>4x4=04</td>
            <td>5x5=05</td>
            <td>6x6=06</td>
            <td>7x7=07</td>
            <td>8x8=08</td>
            <td>9x9=09</td>
        </tr>
        <tr>
            <td>1x1=01</td>
            <td>2x2=02</td>
            <td>3x3=03</td>
            <td>4x4=04</td>
            <td>5x5=05</td>
            <td>6x6=06</td>
            <td>7x7=07</td>
            <td>8x8=08</td>
            <td>9x9=09</td>
        </tr>
        <tr>
            <td>1x1=01</td>
            <td>2x2=02</td>
            <td>3x3=03</td>
            <td>4x4=04</td>
            <td>5x5=05</td>
            <td>6x6=06</td>
            <td>7x7=07</td>
            <td>8x8=08</td>
            <td>9x9=09</td>
        </tr>
        <tr>
            <td>1x1=01</td>
            <td>2x2=02</td>
            <td>3x3=03</td>
            <td>4x4=04</td>
            <td>5x5=05</td>
            <td>6x6=06</td>
            <td>7x7=07</td>
            <td>8x8=08</td>
            <td>9x9=09</td>
        </tr>
        <tr>
            <td>1x1=01</td>
            <td>2x2=02</td>
            <td>3x3=03</td>
            <td>4x4=04</td>
            <td>5x5=05</td>
            <td>6x6=06</td>
            <td>7x7=07</td>
            <td>8x8=08</td>
            <td>9x9=09</td>
        </tr>
        <tr>
            <td>1x1=01</td>
            <td>2x2=02</td>
            <td>3x3=03</td>
            <td>4x4=04</td>
            <td>5x5=05</td>
            <td>6x6=06</td>
            <td>7x7=07</td>
            <td>8x8=08</td>
            <td>9x9=09</td>
        </tr>
        <tr>
            <td>1x1=01</td>
            <td>2x2=02</td>
            <td>3x3=03</td>
            <td>4x4=04</td>
            <td>5x5=05</td>
            <td>6x6=06</td>
            <td>7x7=07</td>
            <td>8x8=08</td>
            <td>9x9=09</td>
        </tr>
        <tr>
            <td>1x1=01</td>
            <td>2x2=02</td>
            <td>3x3=03</td>
            <td>4x4=04</td>
            <td>5x5=05</td>
            <td>6x6=06</td>
            <td>7x7=07</td>
            <td>8x8=08</td>
            <td>9x9=09</td>
        </tr>
    </table> -->
</body>
<script>
    // JS动态生成
    // 先写静态的 再写动态的

    // document.write("<h2>哈哈哈哈哈</h2>");   可以打印html到页面上


    document.write("<table>");
    var i = 1;
    while(i<=9){
        document.write("<tr>");
        var j = 1;
        while(j<=9){
            document.write("<td>");
            document.write("*");
            document.write("</td>")
            j++;
        } 
        
        document.write("</tr>");
        i++;
    } 


    document.write("</table>");

</script>
</html>